package com.mineoj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 比赛分数
 * @TableName competition_score
 */
@TableName(value ="competition_score")
@Data
public class CompetitionScore {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 比赛 id
     */
    private Long competitionId;

    /**
     * 题目 id
     */
    private Long questionId;

    /**
     * 分数
     */
    private Integer score;

    /**
     * 用户 id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


}